package com.kingdee.eas.custom.bpmworkflow.cbbill.wgqr.webservice;

import org.apache.axis.Message;

import org.apache.axis.MessageContext;

import org.apache.axis.message.SOAPEnvelope;

import org.apache.axis.message.SOAPHeaderElement;

import com.kingdee.bos.webservice.WSConfig;

import com.kingdee.bos.webservice.WSInvokeException;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.ObjectMultiPK;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
import com.kingdee.bos.orm.core.ORMEngine;
import com.kingdee.bos.webservice.BeanConvertHelper;
import com.kingdee.bos.webservice.BOSTypeConvertor;
import com.kingdee.bos.util.BOSUuid;
import com.kingdee.bos.webservice.WSConfig;
import com.kingdee.bos.webservice.MetaDataHelper;
import com.kingdee.bos.BOSObjectFactory;

public class WSNewFinishConfirmBillResponseFacadeSrvProxy { 

    public String _ApproveClose( String strBTID , String strBOID , String procInstID , String processInstanceResult , String strComment , String dtTime , String soapHeader , String auditorNum ) throws WSInvokeException {
        try {
            return getController()._ApproveClose(
            strBTID,
            strBOID,
            procInstID,
            processInstanceResult,
            strComment,
            dtTime,
            soapHeader,
            auditorNum);
        }
        catch( Throwable e ) {
            throw new WSInvokeException( e ) ;
        }
    }

    public String _UpdateBusinessData( String strBTID , String strBOID , String procInstID , String strStepName , String strApproverId , String strXML , String dtTime , String soapHeader ) throws WSInvokeException {
        try {
            return getController()._UpdateBusinessData(
            strBTID,
            strBOID,
            procInstID,
            strStepName,
            strApproverId,
            strXML,
            dtTime,
            soapHeader);
        }
        catch( Throwable e ) {
            throw new WSInvokeException( e ) ;
        }
    }

    public String _Audit( String strBTID , String strBOID , String procInstID , String strStepName , String strApproverId , String action , String strComment , String dtTime , String soapHeader ) throws WSInvokeException {
        try {
            return getController()._Audit(
            strBTID,
            strBOID,
            procInstID,
            strStepName,
            strApproverId,
            action,
            strComment,
            dtTime,
            soapHeader);
        }
        catch( Throwable e ) {
            throw new WSInvokeException( e ) ;
        }
    }

    public String _Rework( String strBTID , String strBOID , String procInstID , String strStepName , String strApproverId , String action , String strComment , String dtTime , String soapHeader ) throws WSInvokeException {
        try {
            return getController()._Rework(
            strBTID,
            strBOID,
            procInstID,
            strStepName,
            strApproverId,
            action,
            strComment,
            dtTime,
            soapHeader);
        }
        catch( Throwable e ) {
            throw new WSInvokeException( e ) ;
        }
    }

    public String _CreateResult( String strBTID , String strBOID , String success , String procInstID , String procURL , String strMessage , String soapHeader ) throws WSInvokeException {
        try {
            return getController()._CreateResult(
            strBTID,
            strBOID,
            success,
            procInstID,
            procURL,
            strMessage,
            soapHeader);
        }
        catch( Throwable e ) {
            throw new WSInvokeException( e ) ;
        }
    }

    private com.kingdee.eas.custom.bpmworkflow.cbbill.wgqr.INewFinishConfirmBillResponseFacade getController() {
        try {
        if (WSConfig.getRomoteLocate()!=null&&WSConfig.getRomoteLocate().equals("false")){
            Message message =MessageContext.getCurrentContext().getRequestMessage();
            SOAPEnvelope soap =message.getSOAPEnvelope();
            SOAPHeaderElement headerElement=soap.getHeaderByName(WSConfig.loginQName,WSConfig.loginSessionId);
            String SessionId=headerElement.getValue();
            return ( com.kingdee.eas.custom.bpmworkflow.cbbill.wgqr.INewFinishConfirmBillResponseFacade )BOSObjectFactory.createBOSObject( SessionId , "com.kingdee.eas.custom.bpmworkflow.cbbill.wgqr.NewFinishConfirmBillResponseFacade") ; 
        } else {
            return ( com.kingdee.eas.custom.bpmworkflow.cbbill.wgqr.INewFinishConfirmBillResponseFacade )BOSObjectFactory.createRemoteBOSObject( WSConfig.getSrvURL() , "com.kingdee.eas.custom.bpmworkflow.cbbill.wgqr.NewFinishConfirmBillResponseFacade" , com.kingdee.eas.custom.bpmworkflow.cbbill.wgqr.INewFinishConfirmBillResponseFacade.class ) ; 
        }
        }
        catch( Throwable e ) {
            return ( com.kingdee.eas.custom.bpmworkflow.cbbill.wgqr.INewFinishConfirmBillResponseFacade )ORMEngine.createRemoteObject( WSConfig.getSrvURL() , "com.kingdee.eas.custom.bpmworkflow.cbbill.wgqr.NewFinishConfirmBillResponseFacade" , com.kingdee.eas.custom.bpmworkflow.cbbill.wgqr.INewFinishConfirmBillResponseFacade.class ) ; 
        }
    }

    private BeanConvertHelper getBeanConvertor() {
        return new BeanConvertHelper(); 
    }

}